    <div class="row clearfix">
        <form action="/?fn=package" method="get" name="form1" id="form1">
            <table class="table table-hover table-condensed table-bordered">
                <input type="hidden" name="fn" value="package" />
                <tr>
                    <th>版本</th>
                    <th id="version">
                        <input type="radio" value="Release" id="Release" name="version" />Release
                        <input type="radio" value="debug" id="debug" name="version" />Debug
                    </th>
                </tr>

                <tr>
                    <th>分支</th>
                    <th id="type">
                        <input type="radio" value="master" id="Release" name="type"/>master
                        <input type="radio" value="develop_Pod" id="debug" name="type" />develop_Pod
                    </th>
                </tr>
                <!--<tr>
                    <th>证书</th>
                    <th>
                        <select name="cerkey" id="cerkey">
                            <option value="0">选择证书</option>
                            <?php //xecho $cerkOptions; ?>
                        </select>
                    </th>
                </tr>-->
                <tr>
                    <th>Tag</th>
                    <th>
                        <select name="tag" id="tag">
                            <option value="0">选择Tag</option>
                            <?php echo $tagOption; ?>
                        </select>
                    </th>
                </tr>
                <tr>
                    <th>打包</th>
                    <th>
                        <input type="button" id="button" value="开始打包" name="submit"/>
                        <img src="img/loading.gif" id="imgloading" style="display: none">
                        <a href="<?php echo $url; ?> " style="display: none" id="downpack"> 下载包 </a>
                        <!--<input type="submit" style="visibility: hidden" id="submit1" value="pack" name="submit1"/>-->
                    </th>
                </tr>
            </table>
        </form>
    </div>
</div>
<script>
    $(document).ready(function(){
        $('#button').bind('click', function(){
            var version = $('#version').find("input:checked").val();
            var type = $('#type').find("input:checked").val();
            
            var tag = $('#tag').val();
            $('#imgloading').css('display' ,'block');
            $.get('/?fn=package&version='+version+'&type='+type+'&tag='+tag, function(res){
                $('#imgloading').css('display' ,'none');
                $('#downpack').css('display' ,'block');
                
                $.get("<?php echo $downIp;?>:55757/?fn=files&iiapple=123",function(data){
                    $("a").attr("href","<?php echo $downUrl;?>/package/"+data);
                 });

            });
           // $('#form1').submit();
        });
        /*
        $('#button').bind('click', fucntion(){
            alert(123123);
            $('#submit').submit();
        });*/
    });
</script>